#!/bin/bash

# ex: bash experimental/jhkim/pta_lmagg.sh --trading_date=20191223-20191230

rm log_pta/*
rm order_plot/*

./pyrunner coin/research/cmd_generator.py --strategy_group=lm-agg --cmd=order_plot \
--strategy_name=huobi_futures_quarter_self --subsymbols=Huobi:Futures:BTC-USD.QUARTER \
--owner=prestoinvt07 \
--assert_feed_cache \
$@ | bash &

./pyrunner coin/research/cmd_generator.py --strategy_group=lm-agg --cmd=order_plot \
--strategy_name=okex_futures_quarter_self --subsymbols=Okex:Futures:BTC-USD.QUARTER \
--owner=xunke07 \
--assert_feed_cache \
$@ | bash &

./pyrunner coin/research/cmd_generator.py --strategy_group=lm-agg --cmd=order_plot \
--strategy_name=lm_agg_binance_btc_usdt_swap --subsymbols=Binance:Futures:BTC-USDT.PERPETUAL \
--api_override=Futures:Binance=l1_realtime \
--assert_feed_cache \
$@ | bash &

./pyrunner coin/research/cmd_generator.py --strategy_group=lm-agg --cmd=order_plot \
--strategy_name=bitflyer_futures --subsymbols=Bitflyer:Futures:BTC-JPY.PERPETUAL \
--assert_feed_cache \
$@ | bash &

wait

cp order_plot/mark_return*.png log_pta/

#pgrep -f tool.order_plot | xargs kill -9
